package com.nativetalk.bean.teacher;

import com.nativetalk.bean.label.TdNtTeacherLabelList;
import org.apache.commons.lang.StringUtils;

import java.util.List;

/**
 * TdNtTeacher entity. @author MyEclipse Persistence Tools
 */

public class TdNtTeacherList implements java.io.Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	// Fields

	private Integer tea_id;//教师id
	private String tea_name;//教师名称
	private String tea_head_portrait;//头像
    private String state;//0开启（在线） 1关闭（离线） 2忙碌
    private String dict_id;//学校id
    private int tea_total_times;//教学总时长(min)
	/**
	 * 3.2新增
	 */
    private String nationality;//国籍 默认为0  0时前端显示美国
	private int tea_label;//标签 0无 1new 2V
	private int fans_size;//粉丝数量
    private String collection_flag;//是否收藏 0是1否
	private String reserve_state = "0";//预约状态  今日可约：2   本周可约：1  其他：0
	private String today_is_valid;//今日可约的状态   0否  1是
	private String this_week_is_valid;//本周可约

	public String getReserve_state() {
		if(StringUtils.isNotBlank(today_is_valid) && !today_is_valid.equals("0")){
			reserve_state = "2";
		}
		else if(StringUtils.isNotBlank(this_week_is_valid) && !this_week_is_valid.equals("0")){
			reserve_state = "1";
		}
		return reserve_state;
	}

	public void setReserve_state(String reserve_state) {
		this.reserve_state = reserve_state;
	}

	public String getThis_week_is_valid() {
		return this_week_is_valid;
	}

	public void setThis_week_is_valid(String this_week_is_valid) {
		this.this_week_is_valid = this_week_is_valid;
	}

	public String getToday_is_valid() {
		return today_is_valid;
	}

	public void setToday_is_valid(String today_is_valid) {
		this.today_is_valid = today_is_valid;
	}

	/**
	 * 4.0新增
	 */
	List<TdNtTeacherLabelList> labels;

	public List<TdNtTeacherLabelList> getLabels() {
		return labels;
	}

	public void setLabels(List<TdNtTeacherLabelList> labels) {
		this.labels = labels;
	}

	public String getCollection_flag() {
		return collection_flag;
	}

	public void setCollection_flag(String collection_flag) {
		this.collection_flag = collection_flag;
	}

	public Integer getTea_id() {
		return tea_id;
	}

	public void setTea_id(Integer tea_id) {
		this.tea_id = tea_id;
	}

	public String getTea_name() {
		return tea_name;
	}

	public void setTea_name(String tea_name) {
		this.tea_name = tea_name;
	}

	public String getTea_head_portrait() {
		return tea_head_portrait;
	}

	public void setTea_head_portrait(String tea_head_portrait) {
		this.tea_head_portrait = tea_head_portrait;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getDict_id() {
		return dict_id;
	}

	public void setDict_id(String dict_id) {
		this.dict_id = dict_id;
	}

	public int getTea_total_times() {
		return tea_total_times;
	}

	public void setTea_total_times(int tea_total_times) {
		this.tea_total_times = tea_total_times;
	}

	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	public int getTea_label() {
		return tea_label;
	}

	public void setTea_label(int tea_label) {
		this.tea_label = tea_label;
	}

	public int getFans_size() {
		return fans_size;
	}

	public void setFans_size(int fans_size) {
		this.fans_size = fans_size;
	}
}